function redirecionaAction(formName, url){
    document.forms[formName].action = url;
    document.forms[formName].submit();

}


function verificaAcao(formName, url){

  var id = document.forms[0].valorID;
        
  if(id == null || id == ''){

	  alert('Selecione um objeto!');

  } else {

    document.forms[formName].action = url;
    document.forms[formName].submit();
  }
}

function confirma(formName, acao, msg){

  if(window.confirm(msg)){
	 document.forms[formName].action = acao;
     document.forms[formName].submit();
  }
}

function recuperaID(id){

   document.forms[0].valorID = id;
}